import React from 'react';
import { Button, Modal } from 'dw-mx';

export default function Child(props) {
    return <Modal
        title="人员信息"
        visible={true}
        onOk={() => props.closeModal("something important!")}
        onCancel={() => props.closeModal()}
    >
        <div>姓名:{props.xm}</div>
        <div>年龄:{props.age}</div>
    </Modal>;
}